<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html" template="../template_back.xhtml">
  
  <ui:define name="content">
  
    <h:form id="contentForm">
      <h:panelGrid columns="3">
      
        <h:outputText value="Titre categorie" />
        <h:inputText id="title" value="#{categoryController.currentCategory.title}" required="true" />
        <h:message for="title"></h:message>
        
      </h:panelGrid>
      <p:commandButton action="#{categoryController.add}" value="Ajouter categorie"/> 
      <h:messages globalOnly="true"/>

    </h:form>  
  
  </ui:define>
  
</ui:composition>
